package echo.vo;

import java.util.List;

public class ModificationRequest {
    private String orderId; // 需要修改的订单ID
    private ModificationType modificationType; // 修改类型
    private List<Item> newItems; // 新的商品列表（用于整单替换）
    private List<ItemModification> itemModifications; // 部分修改的详细信息

    public ModificationRequest() {
    }

    public ModificationRequest(String orderId, ModificationType modificationType, List<Item> newItems, List<ItemModification> itemModifications) {
        this.orderId = orderId;
        this.modificationType = modificationType;
        this.newItems = newItems;
        this.itemModifications = itemModifications;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public ModificationType getModificationType() {
        return modificationType;
    }

    public void setModificationType(ModificationType modificationType) {
        this.modificationType = modificationType;
    }

    public List<Item> getNewItems() {
        return newItems;
    }

    public void setNewItems(List<Item> newItems) {
        this.newItems = newItems;
    }

    public List<ItemModification> getItemModifications() {
        return itemModifications;
    }

    public void setItemModifications(List<ItemModification> itemModifications) {
        this.itemModifications = itemModifications;
    }


    @Override
    public String toString() {
        return "ModificationRequest{" +
                "orderId='" + orderId + '\'' +
                ", modificationType=" + modificationType +
                ", newItems=" + newItems +
                "itemModifications=" + itemModifications +
                '}';
    }
}
